﻿//===========================[ 8 / 5 / 2011 LVI ]=============================
//				Copyright c Vitaly Lyaschenko <SkyChameleon@gmail.com>
//								Source file
// Purpose: 
//=============================================================================
//#include "gl3com.h"
#include <GL/glew.h>
#include <GL/wglew.h>

#include "cVertexArray.h"

cVAO::cVAO()
{

}

void cVAO::Create()
{
	glGenVertexArrays( 1, &m_VAOid );
	glBindVertexArray( m_VAOid );
}

void cVAO::Release()
{
	glDeleteVertexArrays( 1, &m_VAOid );
}

void cVAO::Unbind()
{
	glBindVertexArray(0);
}

void cVAO::Bind()
{
	glBindVertexArray( m_VAOid );
}